# 作者: 宇
# 2025年02月25日11时03分49秒
import re

ret = re.match(r"[1-9]?\d$|100","1000")
print(ret.group())

email_list = ["xiaoWang@163.com","xiaomingwang@126.com", "xiaoWang@163.comheihei", ".com.xiaowang@qq.com"]
for email in email_list:
    ret=re.match(r'\w{5,20}@(163|126|qq)\.com$',email)
    if ret:
        print(f'{email}是合法遍历名')
    else:
        print(f'{email}不是合法变量名')